<?php

use Illuminate\Database\Seeder;
use App\Models\User;
class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
   {
     $users = factory(User::class)->times(50)->make();
     User::insert($users->makeVisible(['password', 'remember_token'])->toArray());
     $user = User::find(1);
     $user->name = 'Aufree';
     $user->email = 'aufree@yousails.com';
     $user->password = bcrypt('wen555');
     $user->is_admin =true;
     $user->activated=true;
     $user->activation_token=str_random(30);
     $user->save();
    }
}
